package oaSystem.biz;

import java.text.ParseException;
import java.util.List;

import oaSystem.Exception.BizException;
import oaSystem.entity.Activity;
import oaSystem.entity.Employee;
import oaSystem.entity.Event;
import oaSystem.entity.JsonResult;

public interface EventBiz {
	/**
	 * 查询事件（by 员工Id）
	 * @param employeeId
	 * @return
	 */
	public List<Event> findEventByEmployeeId(Integer employeeId);
	
	/**
	 * 更新活动
	 * @param event
	 * @param creator
	 * @throws ParseException
	 * @throws BizException
	 */
	void updateActivity(Event event,Employee editor,Boolean isCompleteChange) throws ParseException,BizException;
	
	/**
	 * 删除活动
	 * @param eventId
	 * @param creator
	 * @throws BizException
	 */
	void deleteActivity(Integer eventId,Employee editor) throws BizException;
	
	JsonResult checkUserIsMatch(Employee editor, Activity activity);
}
